<template>
  <div class="orderList">
    <div class="topSearch">
      <el-row :gutter="20">
        <el-col :span="4"><div class="orderTitle">生产订单列表</div></el-col>
        <el-col :span="16"
          ><div class="search">
            <div style="width: 70%">
              <el-input v-model="input" placeholder="请输入内容"></el-input>
            </div>
            <div style="width: 30%">
              <el-radio-group v-model="tabPosition" size="mini" fill="#4caf50">
                <el-radio-button label="top">全部</el-radio-button>
                <el-radio-button label="right">已审核</el-radio-button>
                <el-radio-button label="bottom">暂存</el-radio-button>
              </el-radio-group>
            </div>
          </div></el-col
        >
        <el-col :span="4"
          ><div class="buttonDown">
            <el-button icon="el-icon-refresh-right" size="mini">重置</el-button>
            <el-button type="success" icon="el-icon-search" size="mini"
              >查询</el-button
            >
          </div></el-col
        >
      </el-row>
    </div>
    <el-row :gutter="20">
      <el-col :span="4"
        ><div class="leftList">
          <div class="title">订单列表</div>
          <div class="list_data">
            <div class="leftItem">
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
            </div>
            <div class="leftItem">
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
            </div>
            <div class="leftItem">
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
            </div>
            <div class="leftItem">
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
              <p>单据编号：3131312312312313</p>
            </div>
          </div>
          <div class="paginationList">
            <el-pagination
              small
              layout="prev, pager, next"
              :total="500"
              :page-size="10"
              :current-page="pageNo"
              @current-change="hh"
            />
          </div></div
      ></el-col>
      <el-col :span="20"
        ><div class="rightList">
          <div class="title">
            <span>订单信息</span>
            <div class="controls">
              <el-button type="text" icon="el-icon-plus">新建</el-button>
              <el-button type="text" icon="el-icon-edit">编辑</el-button>
              <el-button type="text" icon="el-icon-printer">打印</el-button>
              <el-button type="text" icon="el-icon-document-checked"
                >审批 ></el-button
              >
              <el-button type="text" icon="el-icon-tickets">下达 ></el-button>
            </div>
          </div>
          <div class="content">
            <div class="formContent">
              <el-descriptions :column="3" border size="mini">
                <el-descriptions-item label="订单编号"
                  >kooriookami</el-descriptions-item
                >
                <el-descriptions-item label="物料编码"
                  >18100000000</el-descriptions-item
                >
                <el-descriptions-item label="物料名称"
                  >苏州市</el-descriptions-item
                >

                <el-descriptions-item label="车间"
                  >苏州市dasdas da daa sd
                  a海航大厦倒是大叔大叔大叔回答实打实的哈哈大厦的拉伸回答是否撒浪嘿发生了会发生很舒服hash啊婚纱啊耦合s
                </el-descriptions-item>
                <el-descriptions-item label="规格型号"
                  >苏州市</el-descriptions-item
                >
                <el-descriptions-item label="状态">苏州市</el-descriptions-item>

                <el-descriptions-item label="订单日期"
                  >苏州市</el-descriptions-item
                >
                <el-descriptions-item label="计划开工日期"
                  >苏州市</el-descriptions-item
                >
                <el-descriptions-item label="计划完工日期"
                  >苏州市</el-descriptions-item
                >

                <el-descriptions-item label="BOM">苏州市</el-descriptions-item>
                <el-descriptions-item label="工艺路线"
                  >苏州市</el-descriptions-item
                >
                <el-descriptions-item label="批次">苏州市</el-descriptions-item>

                <el-descriptions-item label="数量">苏州市</el-descriptions-item>
                <el-descriptions-item label="备注" :span="2"
                  >苏州市a海航大厦倒是大叔大叔大叔回答实打实的哈哈大厦的拉伸回答是否撒浪嘿发生了会发生很舒服hash啊婚纱啊耦合s</el-descriptions-item
                >
              </el-descriptions>
            </div>
            <div class="rightTableList">
              <el-tabs type="border-card">
                <el-tab-pane label="用户管理">
                  <el-table :data="tableData" border style="width: 100%" height="320px">
                    <el-table-column prop="date" label="日期" width="180">
                    </el-table-column>
                    <el-table-column prop="name" label="姓名" width="180">
                    </el-table-column>
                    <el-table-column prop="address" label="地址">
                    </el-table-column>
                  </el-table>
                </el-tab-pane>
                <el-tab-pane label="配置管理">
                    <el-table :data="tableData" border style="width: 100%" height="320px">
                    <el-table-column prop="date" label="日期" width="180">
                    </el-table-column>
                    <el-table-column prop="name" label="姓名" width="180">
                    </el-table-column>
                    <el-table-column prop="address" label="地址">
                    </el-table-column>
                  </el-table>
                </el-tab-pane>
                <el-tab-pane label="角色管理">
                    <el-table :data="tableData" border style="width: 100%" height="320px">
                    <el-table-column prop="date" label="日期" width="180">
                    </el-table-column>
                    <el-table-column prop="name" label="姓名" width="180">
                    </el-table-column>
                    <el-table-column prop="address" label="地址">
                    </el-table-column>
                  </el-table>
                </el-tab-pane>
                <el-tab-pane label="定时任务补偿">
                    <el-table :data="tableData" border style="width: 100%" height="320px">
                    <el-table-column prop="date" label="日期" width="180">
                    </el-table-column>
                    <el-table-column prop="name" label="姓名" width="180">
                    </el-table-column>
                    <el-table-column prop="address" label="地址">
                    </el-table-column>
                  </el-table>
                </el-tab-pane>
              </el-tabs>
            </div>
          <div class="userBottom">
            <el-descriptions :column="3" border size="mini">
                <el-descriptions-item label="订单编号"
                  >kooriookami</el-descriptions-item
                >
                <el-descriptions-item label="物料编码"
                  >18100000000</el-descriptions-item
                >
                <el-descriptions-item label="物料名称"
                  >苏州市</el-descriptions-item
                >
                <el-descriptions-item label="订单编号"
                  >kooriookami</el-descriptions-item
                >
                <el-descriptions-item label="物料编码"
                  >18100000000</el-descriptions-item
                >
                <el-descriptions-item label="物料名称"
                  >苏州市</el-descriptions-item
                >
                </el-descriptions>
          </div>
          </div>
        </div></el-col
      >
    </el-row>
  </div>
</template>
<script>
export default {
  data() {
    return {
      tabPosition: "",
      pageNo: 1,
      tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄'
        }, {
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1519 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }
        , {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }]
    };
  },
  methods: {
    hh(e) {
      console.log(e);
    },
  },
};
</script>
<style lang="scss" scoped>
.orderList {
  height: calc(100vh - 84px);
  overflow-y: auto;
  padding: 20px;
  padding-top: 0;
  background: #f4f5f7;
  .topSearch {
    height: 50px;
    background: #fff;
    margin-bottom: 10px;
    line-height: 50px;
    .orderTitle {
      height: 50px;
      font-size: 16px;
      padding-left: 10px;
      font-weight: 700;
    }
    .search {
      display: flex;
    }
  }
  .leftList {
    height: calc(100vh - 164px);
    background: #fff;

    padding-bottom: 30px;
    position: relative;
    .list_data {
      height: calc(100% - 40px);
      overflow-y: auto;
    }
    .leftItem {
      min-height: 180px;
      cursor: pointer;
      padding: 20px;
      font-size: 15px;
      border-bottom: 2px solid #f7f7f7;
      p {
        text-align: center;
        word-break: break-all;
        line-height: 28px;
      }
    }
    .paginationList {
      width: 100%;
      height: 30px;
      display: flex;
      justify-content: center;
      position: absolute;
      bottom: 0;
    }
  }
  .rightList {
    height: calc(100vh - 164px);
    background: #fff;
    .content {
      height: calc(100% - 50px);
      overflow-y: auto;
      .formContent {
        padding: 10px 20px;
      }
      .rightTableList {
        padding: 10px 20px;
      }
      .userBottom{
        padding: 10px 20px;
        
      }
    }
  }
  .title {
    height: 40px;
    display: flex;
    padding: 0 5px;
    border-bottom: 2px solid #f7f7f7;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
  }
}
</style>